(function(){

var ResponObj = require("../_include/responObj");
var myfs = require("../_include/fs");
var theme = require("./theme");
module.exports = {
	prefix:"/changetheme",
	get:{
		"/":function *(next){
			var query = this.request.query;
			var bus_name = query.name.toLowerCase();
			if (bus_name) {
				this.body = theme.changeBusTheme(bus_name,query.theme)
			}else{
				this.body = ResponObj("error","参数错误");
			}
			yield next;
		}
	}
}
}());
